﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Mvc;
using KabiManagementWeb.Models;
namespace KabiManagementWeb.Views.Shared
{
    public partial class MainSite : System.Web.Mvc.ViewMasterPage
    {
        public String UserName { get; set; }
        public String AdminRole { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["User"] == null) {
                Response.Redirect("Account");
            }
            else
            {
              Admin ad= (Admin) Session["User"];
              UserName = ad.UserName;
              AdminRole = ad.Role.F_Name;
            }
        }
    }
}